<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .loading {
            width: 100px;
            height: 100px;
            box-sizing: border-box;
            border-radius: 50%;
            margin: 50px auto;
            border-bottom: 6px solid skyblue;
            line-height: 100px;
            text-align: center;
            position: relative;
            animation: turn 2s linear infinite;
        }

        .loading span {
            display: block;
            animation: turn 2s linear infinite reverse;
        }

        .loading:before,
        .loading:after {
            display: block;
            box-sizing: border-box;
            width: 100px;
            height: 100px;
            content: '';
            border-radius: 50%;
            position: absolute;
            top: 0;
            left: 0;
        }

        .loading:before {
            border-bottom: 6px solid hotpink;
            transform: rotateZ(120deg);
        }

        .loading:after {
            border-bottom: 6px solid greenyellow;
            transform: rotateZ(-120deg);
        }

        @keyframes turn {
            from {
                transform: rotateZ(0deg);
            }
            to {
                transform: rotateZ(360deg);
            }
        }

        @keyframes turn2 {
            from {
                transform: rotateZ(360deg);
            }
            to {
                transform: rotateZ(0deg);
            }
        }
    </style>
</head>
<body>
<div class="loading">
    <span>loading...</span>
</div>
</body>
</html>